var str='';
<#list list as doc>
<#if doc_index gt 3><#break/></#if>
str+='<div id="r-image${doc_index+1}" class="r-image"><a title="${doc.temp_title}" href="<#if doc.url?has_content>${doc.url}</#if>" target="_blank"><img height="59" width="144" src="<#if doc.picname?has_content>${doc.picname}</#if>"></a></div>';
</#list>
document.write(str);
